-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gpu quota #4
Conversation
src/dsmlp/ext/kube.py
Outdated
@@ -16,9 +18,38 @@ def get_namespace(self, name: str) -> Namespace: | |||
api = self.get_policy_api() | |||
v1namespace: V1Namespace = api.read_namespace(name=name) | |||
metadata: V1ObjectMeta = v1namespace.metadata | |||
|
|||
gpu_quota = 1 | |||
if metadata.annotations is not None and GPU_LIMIT_ANNOTATION in metadata.annotations: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if metadata is none (we're not 100% sure of the API)? I'd add that case in and write a test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hanzen will add this test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test case added. Just need to resolve low priority gpu bug before PR can be made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Low priority bug fixed
GPU Validation merged into DSMLP Validator |
Moved GPU Quota validation to DSMLP Validator
Separated GPU validation from AWSEd UID/PID validation using components architecture